// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.SourcingManage;
import com.fowo.api.model.sourcing.manage.SourcingManageItemVo;
import com.fowo.api.model.sourcing.manage.SourcingManageSearchParamPo;
import com.fowo.api.model.sourcing.manage.SourcingManageVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface SourcingManageMapper extends BaseMapper<SourcingManage> {
  Page<SourcingManageItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  List<OptionItem<SourcingManageItemVo>> searchOptions(
    @Param("search") SourcingManageSearchParamPo search
  );
  List<SourcingManageItemVo> search(
    @Param("search") SourcingManageSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(@Param("search") SourcingManageSearchParamPo search);
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") SourcingManageSearchParamPo search);
  Long getIdByTaskId(@Param("taskId") Long taskId);

  List<Long> getIdsByTaskId(@Param("list") List<Long> list);

  Long getTaskIdById(@Param("id") Long id);

  List<Map<String, Object>> getTaskIdByIds(@Param("ids") List<Long> ids);
  SourcingManageVo selectVoById(@Param("id") Long id);
  /**
   * 全部
   */
  List<SourcingManageItemVo> allData(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取全部编号列表
   */
  List<Long> allDataIds(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 获取全部的总数
   */
  Long allDataCount(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 全部分页
   */
  Page<SourcingManageItemVo> allDataPage(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  Date allDataLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
  /**
   * 接收
   */
  List<SourcingManageItemVo> receive(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取接收编号列表
   */
  List<Long> receiveIds(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 获取接收的总数
   */
  Long receiveCount(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 接收分页
   */
  Page<SourcingManageItemVo> receivePage(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  Date receiveLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
  /**
   * 完成
   */
  List<SourcingManageItemVo> complete(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取完成编号列表
   */
  List<Long> completeIds(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 获取完成的总数
   */
  Long completeCount(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 完成分页
   */
  Page<SourcingManageItemVo> completePage(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  Date completeLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
  /**
   * 未完成
   */
  List<SourcingManageItemVo> noIncomplete(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取未完成编号列表
   */
  List<Long> noIncompleteIds(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取未完成的总数
   */
  Long noIncompleteCount(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 未完成分页
   */
  Page<SourcingManageItemVo> noIncompletePage(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  Date noIncompleteLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
  /**
   * 已失效
   */
  List<SourcingManageItemVo> expired(
    @Param("search") SourcingManageSearchParamPo search
  );

  /**
   * 获取已失效编号列表
   */
  List<Long> expiredIds(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 获取已失效的总数
   */
  Long expiredCount(@Param("search") SourcingManageSearchParamPo search);

  /**
   * 已失效分页
   */
  Page<SourcingManageItemVo> expiredPage(
    @Param("page") Page page,
    @Param("search") SourcingManageSearchParamPo search
  );
  Date expiredLastUpdateTime(
    @Param("search") SourcingManageSearchParamPo search
  );
}
